package com.uroad.liaoningpos.model;

import java.io.Serializable;

/**
 * @创建者 wlw
 * @创建时间 2019/4/11 13:42
 * @描述 支付信息
 */
public class MemInfo implements Serializable {
    private String userNo;
    private String transNo;
    private String orderNo;
    private String discountInfo;
    private String openId;
    private String channelName;

    public String getUserNo() {
        return userNo == null ? "" : userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getTransNo() {
        return transNo == null ? "" : transNo;
    }

    public void setTransNo(String transNo) {
        this.transNo = transNo;
    }

    public String getOrderNo() {
        return orderNo == null ? "" : orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getDiscountInfo() {
        return discountInfo == null ? "" : discountInfo;
    }

    public void setDiscountInfo(String discountInfo) {
        this.discountInfo = discountInfo;
    }

    public String getOpenId() {
        return openId == null ? "" : openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getChannelName() {
        return channelName == null ? "" : channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getType(){
        switch (getChannelName()) {
            case "辽宁高速通":
                return "3";
            default:
                return "2";
        }
    }
}
